package cn.sjlink.appraise.entity;

import cn.sjlink.util.base.BaseModel;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author tiny
 * @date 2020/4/24 16:29
 * @description
 */

/**
 * 寄卖log表
 */
@Table(name = "yoshop_appraise_goods_log")
public class YoshopAppraiseGoodsLog extends BaseModel {
    /**
    * 主键id
    */
    @Id
    @Column(name = "id")
    private Integer id;

    /**
    * 评估商品id
    */
    private Integer appraiseGoodsId;

    /**
    * 操作前状态
    */
    private Integer beforeStatus;

    /**
    * 操作后状态
    */
    private Integer afterStatus;

    /**
    * 是否是用户
    */
    private Integer isUser;

    /**
    * 用户ID
    */
    private Long userId;

    private String memo;
    /**
    * 后台用户ID
    */
    private Integer storeUserId;

    private Integer wxappId;

    public Integer getWxappId() {
        return wxappId==null?10001:wxappId;
    }

    public void setWxappId(Integer wxappId) {
        this.wxappId = wxappId;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAppraiseGoodsId() {
        return appraiseGoodsId;
    }

    public void setAppraiseGoodsId(Integer appraiseGoodsId) {
        this.appraiseGoodsId = appraiseGoodsId;
    }

    public Integer getBeforeStatus() {
        return beforeStatus;
    }

    public void setBeforeStatus(Integer beforeStatus) {
        this.beforeStatus = beforeStatus;
    }

    public Integer getAfterStatus() {
        return afterStatus;
    }

    public void setAfterStatus(Integer afterStatus) {
        this.afterStatus = afterStatus;
    }

    public Integer getIsUser() {
        return isUser;
    }

    public void setIsUser(Integer isUser) {
        this.isUser = isUser;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getStoreUserId() {
        return storeUserId;
    }

    public void setStoreUserId(Integer storeUserId) {
        this.storeUserId = storeUserId;
    }
}